import { createSubkeys } from './createSubksy'
import { encrypter, decrypter } from './handle'
import { getBuffer } from './utils'

const key = 'inspired'
const subkeys = createSubkeys(key)


// const M1 = 'positive'
const M2 = 'serenity'

const m = getBuffer(M2)
console.log(m);

const C2 = encrypter(M2, subkeys)
// console.log('-----------------------------');
console.log(C2);


const result = decrypter('a8545a19300cd306', subkeys)
console.log(result);




// const keys = 'safasfasfdf'

// const subkeys = createSubkeys(keys)

// const mi = encrypter(' 加密后，16进制字符串', subkeys)
// console.log(`加密信息：${mi}`);
// console.log('解密');
// const text = decrypter(mi, subkeys)
// console.log(text);


